import React from 'react';
import {connect} from 'dva';
import {Layout} from 'antd';
import SiderMenu from "../components/Menu/SiderMenu";
import SysHeader from "../components/Header/SysHeader";

const {Header, Content, Footer, Sider} = Layout;


function IndexPage({children, home}) {
  return (
    <div>
      <Layout>
        <SiderMenu/>
        <Layout>
          <SysHeader/>
          <Content style={{margin: '24px 16px', minHeight: 600}}>
            {children}
          </Content>
        </Layout>
      </Layout>
    </div>
  );
}

IndexPage.propTypes = {};

export default connect()(IndexPage);
